#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

(
chgrp video /sys/class/backlight/dcon-bl/brightness
chmod g+w /sys/class/backlight/dcon-bl/brightness
chgrp video /sys/devices/platform/dcon/output
chmod g+w /sys/devices/platform/dcon/output
/usr/sbin/setolpckeys /dev/input/by-path/platform-i8042-serio-0-event-kbd
/usr/sbin/olpc-switchd -f -l -p 10 -F /var/run/powerevents &
/usr/sbin/powerd &
) > /dev/null 2>&1
exit 0
